package com.microservice.chapter1;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class YAMLTest {


    @Value("${user.userName}")
    private String userName;


    @ResponseBody
    @RequestMapping("/test1")
    public String test1(){
        return "姓名："+userName;
    }


}
